package b.i.b;

import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.os.Bundle;
import java.util.ArrayList;

/* compiled from: NotificationCompat */
public class h {
    public Context a;
    public ArrayList<g> b = new ArrayList();
    public ArrayList<g> c = new ArrayList();
    public CharSequence d;
    public PendingIntent e;
    public boolean f = true;
    public String g;
    public boolean h;
    public Bundle i;
    public String j;
    public boolean k;
    public Notification l;
    @Deprecated
    public ArrayList<String> m;

    public h(Context context, String str) {
        Notification notification = new Notification();
        this.l = notification;
        this.a = context;
        this.j = str;
        notification.when = System.currentTimeMillis();
        this.l.audioStreamType = -1;
        this.m = new ArrayList();
        this.k = true;
    }

    public h a(CharSequence charSequence) {
        if (charSequence != null && charSequence.length() > 5120) {
            charSequence = charSequence.subSequence(0, 5120);
        }
        this.d = charSequence;
        return this;
    }

    public final void b(int i, boolean z) {
        Notification notification;
        if (z) {
            notification = this.l;
            notification.flags = i | notification.flags;
            return;
        }
        notification = this.l;
        notification.flags = (~i) & notification.flags;
    }
}
